﻿using CSharpPro2._1106;
using IUserService = CSharpPro2._1106.IUserService;

namespace CSharpPro2;

public class Program
{
    public static void Main(string[] args)
    {
        //Demo.TestPrint1.Test1();
        //Demo.TestPrint1.Test2();
        //Demo.TestPrint1.Test3();
        //Demo.TestPrint1.Test4();
        //Demo.TestPrint1.Test5();
        //Demo.TestPrint1.Test6();
        /*
         Console.WriteLine("----- 用户登录与注册系统 -----");
         User.TestPrint2.Test7();
         Console.WriteLine("\n===== 程序演示结束 =====");
         */
        //Demo.TestPrint();
         /* UserTest userTest = new UserTestImpl();
            userTest.M1();
            userTest.M2();
            userTest.M3();

            Console.WriteLine();

            IUserService userService = new UserServiceImpl();
            userService.Add();
            userService.Delete();
            userService.Update();
            userService.Query();
            */
         // 依赖注入接口实现
         IUserService userService = new UserService();
         // 启动程序
         userService.Run();
    }
}